package service;

import common.OrderComment;
import pojo.Restaurant;

import java.util.List;
import java.util.Map;

public interface IRestService {

    int register (Restaurant restaurant);

    int setStatus (Integer id, Byte status);

    Restaurant getMyRest(Integer userId);

    List<Restaurant> listOpen(Map<String,Object> map);

    Restaurant getRestInfo(Integer id);

    int updateRest (Restaurant restaurant);

    List<OrderComment> getRestComments(Integer rid);

    int selectTotal(Map<String,Object> map);
}
